window.onload = function () {
    var box = document.getElementsByClassName("box")[0];
    box.onclick = function () {
        alert(1111)
    }
}